package com.rainszj.mapper;

import com.rainszj.pojo.po.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 * @author rainszj
 * 2020/3/10
 */
@Repository
public interface UserMapper {

    /**
     * 通过用户名和密码查询用户
     *
     * @param username
     * @param password
     * @return
     */
    User queryByUsernameAndPassword(@Param("username") String username, @Param("password") String password);


    /**
     * 通过用户名查询用户
     * @param username
     * @return
     */
    User queryUserByName(@Param("username")String username);

}
